-- This gets the script of the most recently added button
get the script of button the number of buttons
put it into theScript
put 1 into theLine
repeat until theLine > the number of lines in theScript
if line theLine of theScript contains "go" then
visual iris open slow
push this card
go to card id 3165 of stack "F/X"
exit mouseUp
end if
add 1 to theLine
end repeat
-- if we got this far, the button has no destination
if theLine > the number of lines in theScript then
answer "Set a destination first, please!"
end if
end mouseUp
-- part contents for background part 2
----- text -----
How To Use Button F/X
-- part contents for background part 1
----- text -----
Button F/X allows you to add visual effects to a new button without having to modify the button script yourself. It will only function on NEW buttons - not on buttons already created. (Maybe the next
release...)
1. Copy the button above to the card you are going to be adding the new buttons to. Put it anywhere convenient - you'll delete it when you're done, anyway.